bitkeeper revision 1.1705.1.12 (42a97f88WORgYhHS8W4t6DR8V9a0EQ)
authorvh249@arcadians.cl.cam.ac.uk <vh249@arcadians.cl.cam.ac.uk>
Fri, 10 Jun 2005 11:54:48 +0000 (11:54 +0000)
committervh249@arcadians.cl.cam.ac.uk <vh249@arcadians.cl.cam.ac.uk>
Fri, 10 Jun 2005 11:54:48 +0000 (11:54 +0000)
signedness fix for gcc-4.0

Signed-off-by: Flavio Bruno Leitner <fbl@conectiva.com.br>
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
tools/python/xen/lowlevel/xs/xs.c

index 98d7826809ad2da14e88d22a7fa1f7f5557b5979..6ecddc6fd40fae1e3589bf770bc7194ce1788e9c 100644 (file)
@@ -85,7 +85,7 @@ static PyObject *xspy_read(PyObject *self, PyObject *args, PyObject *kwds)
 
     struct xs_handle *xh = xshandle(self);
     char *xsval = NULL;
-    int xsval_n = 0;
+    unsigned int xsval_n = 0;
     PyObject *val = NULL;
 
     if (!xh)
@@ -134,7 +134,7 @@ static PyObject *xspy_ls(PyObject *self, PyObject *args, PyObject *kwds)
     struct xs_handle *xh = xshandle(self);
     PyObject *val = NULL;
     char **xsval = NULL;
-    int xsval_n = 0;
+    unsigned int xsval_n = 0;
     int i;
 
     if (!xh)
@@ -183,7 +183,7 @@ static PyObject *xspy_get_permissions(PyObject *self, PyObject *args,
     struct xs_handle *xh = xshandle(self);
     PyObject *val = NULL;
     struct xs_permissions *perms;
-    int perms_n = 0;
+    unsigned int perms_n = 0;
     int i;
 
     if (!xh)